package com.hc.service.impl;

import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.hc.domain.ProjCategory;
import com.hc.mapper.ProjCategoryMapper;
import com.hc.service.ProjCategoryService;

import java.util.List;

/**
 * @author: hecai
 * @date: 2021/11/9 11:17
 * @description: 
 */
@Service
public class ProjCategoryServiceImpl implements ProjCategoryService{

    @Resource
    private ProjCategoryMapper projCategoryMapper;

    @Override
    public int deleteByPrimaryKey(Long id) {
        return projCategoryMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(ProjCategory record) {
        return projCategoryMapper.insert(record);
    }

    @Override
    public int insertSelective(ProjCategory record) {
        return projCategoryMapper.insertSelective(record);
    }

    @Override
    public ProjCategory selectByPrimaryKey(Long id) {
        return projCategoryMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(ProjCategory record) {
        return projCategoryMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(ProjCategory record) {
        return projCategoryMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<Long> selectIdsByProjId(Long pid) {
        return projCategoryMapper.selectIdsByProjId(pid);
    }

    @Override
    public List<Integer> selectCidByPrimaryKey(Long id) {
        return projCategoryMapper.selectCidByPrimaryKey(id);
    }
}
